
<template>
  <div class="weui-footer">
    <p class="weui-footer__links">
      <template  v-for="(item,key) in links" >
          <router-link :to="item.url" class="weui-footer__link">{{item.title}}</router-link>
      </template>
    </p>
    <p class="weui-footer__text">Copyright © 2008-2016 USoft.Vms</p>
  </div>
</template>

<script>

export default {
  name: 'hello',
  data () {
    return {
      links: [
        {
          title: "首页",
          url: "home"
        },
        {
          title: "车辆库存",
          url: "stock"
        }
      ],
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
  font-weight: normal;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  display: inline-block;
  margin: 0 10px;
}

a {
  color: #42b983;
}
</style>
